const val = [] == ![];

([+val, [] + 1] ==
  [1, 1] +
    [][
      // [1, '1'] = [1, 1] + ''
      // '1, 1'

      (+val, [] + 1)
    ]) ==
  [1, "1"];
// [1, '1']  == [1, '1']

console.log([+val, [] + 1] == [1, "1"]);
